package com.littcore.saap.system.vo;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

import com.littcore.saap.common.vo.IConfInfo;

public class TenantConfigVo implements Serializable {

  /** The Constant serialVersionUID. */
  private static final long serialVersionUID = 1L;

  /**
   * 租户ID.
   */
  private int tenantId;

  private Map<String, IConfInfo> confInfoMap = new HashMap<String, IConfInfo>();

  /**
   * @param tenantId
   */
  public TenantConfigVo(int tenantId)
  {
    this.tenantId = tenantId;
  }

  public void put(String code, IConfInfo confInfo)
  {
    confInfoMap.put(code, confInfo);
  }
  
  public IConfInfo get(String code)
  {
    return confInfoMap.get(code);
  }
  
  public void remove(String code)
  {
    confInfoMap.remove(code);
  }
  
  /**
   * @return the tenantId
   */
  public int getTenantId()
  {
    return tenantId;
  }

  
  /**
   * @param tenantId the tenantId to set
   */
  public void setTenantId(int tenantId)
  {
    this.tenantId = tenantId;
  }

  
  /**
   * @return the confInfoMap
   */
  public Map<String, IConfInfo> getConfInfoMap()
  {
    return confInfoMap;
  }

  
  /**
   * @param confInfoMap the confInfoMap to set
   */
  public void setConfInfoMap(Map<String, IConfInfo> confInfoMap)
  {
    this.confInfoMap = confInfoMap;
  }
  
}
